hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors
authorJacob Shin <jacob.shin@amd.com>
Thu, 12 May 2011 08:14:06 +0000 (09:14 +0100)
committerJacob Shin <jacob.shin@amd.com>
Thu, 12 May 2011 08:14:06 +0000 (09:14 +0100)
HVM VPMU support can be enabled for AMD Family 12h and 14h processors
by taking the same code path as 10h.

Signed-off-by: Jacob Shin <jacob.shin@amd.com>
xen/arch/x86/hvm/svm/vpmu.c
xen/arch/x86/hvm/vpmu.c

index 2d320b182f2e87b8a1bb90deab2bf44a3778a220..a755c4a0f22204b8323c4c03deaad79bc1ca85c2 100644 (file)
@@ -317,6 +317,8 @@ static void amd_vpmu_initialise(struct vcpu *v)
             k7_counters_mirrored = 1;
             break;
         case 0x10:
+        case 0x12:
+        case 0x14:
         default:
             num_counters = F10H_NUM_COUNTERS;
             counters = AMD_F10H_COUNTERS;
index 7e03525b2f2330f34171a92fdc719195303e4a15..9422da92c95ecf041168bf359cda2af1e0f3fb6a 100644 (file)
@@ -101,6 +101,8 @@ void vpmu_initialise(struct vcpu *v)
         switch ( family )
         {
         case 0x10:
+        case 0x12:
+        case 0x14:
         case 0x15:
             vpmu->arch_vpmu_ops = &amd_vpmu_ops;
             break;